package com.example.springbootv1.service.impl;

import com.example.springbootv1.mapper.StatisticsMapper;
import com.example.springbootv1.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StatisticsServiceImpl implements StatisticsService {
    @Autowired
    private StatisticsMapper statisticsMapper;
    @Override
    public List<Map<String, Object>> getSexStatistics() {
        return statisticsMapper.getSexStatistics();
    }
    public List<Map<String, Object>> getGradeStatistics() {
        return statisticsMapper.getGradeStatistics();
    }

    @Override
    public List<Map<String, Object>> getBillsStatistics() {
        return statisticsMapper.getBillsStatistics();
    }

}
